package com.googlecode.stockhamster.stockmarket;

public interface IStockMarket {
	public	String	open(String username);
	
	public	Boolean	close(String username, String code);
	
	public	Boolean	requestBuy(String username, String code, Integer stockID, Long price, Integer amount, String moneyCode);
	
	public	Boolean	requestSell(String username, String code, Integer stockID, Long price, Integer amount);
	
	public	Boolean	removeRequestBuy(String username, String code, Integer stockID, Long price);
	
	public	Boolean	removeRequestSell(String username, String code, Integer stockID, Long price);
	
	public	Integer[]	getStockList(String username, String code);
	
	public	Integer	getStockAmount(String username, String code, Integer stockID);
	
	public	Boolean	removeUserRequest(String username, String code);
	
	// for administration
	//public	Boolean	setCompanyStock(String adminCode, String companyName, Integer stockID, Integer amount);
	public	Boolean	addMarketStock(String adminCode, Integer stockID, Integer amount);
	
	public	String[] getStockOwner(String adminCode, Integer stockID);
	
	public  Integer getStockAmountByAdmin(String adminCode, String username, Integer stockID);
	
	// for debug
	public  Boolean printUserQueue(String username);
}
